import request from '@/utils/request'

export function getGrades(query) {
  return request({
    url: '/distribution/grade/getList',
    method: 'post',
    data: query
  })
}
export function getGradeFullList(query) {
  return request({
    url: '/distribution/grade/getUsableList',
    method: 'post',
    data: query
  })
}

export function getGrade(id) {
  return request({
    url: '/distribution/grade/getDetail',
    method: 'post',
    data: id
  })
}

export function saveGrade(id) {
  return request({
    url: '/distribution/grade/save',
    method: 'post',
    data: id
  })
}

export function removeGradeByID(id) {
  return request({
    url: '/distribution/grade/remove',
    method: 'post',
    data: id
  })
}

export function changeStatusByGradeID(formdata) {
  return request({
    url: '/distribution/grade/change-status',
    method: 'post',
    data: formdata
  })
}

